package com.woniu.sharepark.platformsystem.util;

/**
 * 将string类型的主键列转换成Integer数组
 * @author zy
 * @date 2019/6/4 20:14
 */
public class ParamsUtil {
    public static Integer[] stringToIntArray(String params) {
        String[] arr = params.split(",");
        Integer[] ids = new Integer[arr.length];
        for (int i=0; i<arr.length; i++){
            ids[i] = Integer.parseInt(arr[i]);
        }

        return ids;
    }
}
